package com.ynet.middleground.user.service;

import com.ynet.core.common.ServiceResult;
import com.ynet.middleground.user.bean.DeleteEnterpriseUserRoleInfoReq;
import com.ynet.middleground.user.bean.EnterpriseUserRoleInfoReq;
import com.ynet.middleground.user.bean.QueryEnterpriseUserRoleListReq;
import com.ynet.middleground.user.bean.UpdateEnterpriseUserRoleInfoReq;
import com.ynet.middleground.user.dto.EnterpriseUserRoleDto;

import javax.validation.Valid;
import java.util.List;

/**
 * @description: 企业用户角色管理服务
 * @author: Wangxz
 * @create: 2019-10-28 17:03
 **/
public interface EnterpriseUserRoleService {

    /**
     * 企业用户添加角色
     * 
     * @param requestObj
     * @return ServiceResult
     */
    public ServiceResult<Integer> addEnterpriseUserRoleInfo(@Valid EnterpriseUserRoleInfoReq requestObj);

    /**
     * 企业用户查询角色信息
     * 
     * @param requestObj
     * @return ServiceResult
     */
    public ServiceResult<List<EnterpriseUserRoleDto>>
        queryEnterpriseUserRoleList(@Valid QueryEnterpriseUserRoleListReq requestObj);

    /**
     * 企业用户修改角色信息
     * 
     * @param requestObj
     * @return ServiceResult
     */
    public ServiceResult<String> updateEnterpriseUserRole(@Valid UpdateEnterpriseUserRoleInfoReq requestObj);

    /**
     * 删除用户角色信息
     * 
     * @param requestObj
     * @return
     */
    public ServiceResult<String> deleteEnterpriseUserRole(@Valid DeleteEnterpriseUserRoleInfoReq requestObj);
}
